﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using WW.NActiveRecord.Tests.Models;

namespace WW.NActiveRecord.Tests.Associations
{
    [TestFixture]
    public class TestBelongsTo : BaseTest
    {

        [TestFixtureSetUp]
        public void SetUpFixture(){
            base.SetUpDb(Table_Suppliers,Table_Products);
        }

        [Test]
        public void Test(){
            Product.Find(1).Supplier.CompanyName.ShouldBe("Exotic Liquids");
        }
    }
}